Information-processing device acquiring wireless identification information via wired communication for setting up command program

ABSTRACT

In an information-processing device, a controller executes a storage process to store a command program in the memory, and an acquisition process for transmitting a request for a piece of wireless identification information to an external device, which is connected to a wired communication interface, via wired communications using the wired communication interface, and for acquiring the piece of wireless identification information from the external device via wired communications using the wired communication interface as a response to the request. The controller specifies the wireless queue by using the acquired piece of wireless identification information and the correlation information which is registered in the registration process by the OS. The controller executes a setup process to enable the command program to output via the wireless communication interface commands to the external device identified by the acquired piece of wireless identification information by using the wireless queue.

CROSS REFERENCE TO RELATED APPLICATION

This application claims priority from Japanese Patent Application No.2019-179621 filed Sep. 30, 2019. The entire content of the priorityapplication is incorporated herein by reference.

TECHNICAL FIELD

The present disclosure relates to a program and aninformation-processing device.

BACKGROUND

There are known printers receiving print commands from a personalcomputer (PC) through wireless communication conforming to a near fieldcommunication standard such as Bluetooth (registered trademark). Inorder for the PC to output print commands to the printer, a setupprogram sets up a command program that supports the printer (forexample, a device driver) on the PC.

SUMMARY

However, a user must perform troublesome tasks to set up the commandprogram used for wireless communication.

In view of the foregoing, it is an object of the disclosure to providean information-processing device or a program that enables a user to setup a command program used for wireless communication more easily.

In order to attain the above and other objects, the disclosure providesa non-transitory computer readable storage medium storing a set ofprogram instructions installed on and executed by aninformation-processing device having a wireless communication interface,a wired communication interface, a user interface, a display, acontroller, and a memory. The memory stores an OS configured to execute:a pairing process to establish a relationship between the OS and anexternal device for wireless communications via the wirelesscommunication interface; obtaining a piece of wireless identificationinformation from the external device via wireless communication usingthe wireless communication interface; generating a wireless queue usedfor wireless communication; and a registration process to registercorrelation information that correlates the generated queue with theobtained piece of wireless identification information. The piece ofwireless identification information identifies the external device andis used for wireless communication with the external device. The set ofprogram instructions includes: executing a storage process to store acommand program in the memory; executing an acquisition process fortransmitting a request for the piece of wireless identificationinformation to the external device, which is connected to the wiredcommunication interface, via wired communications using the wiredcommunication interface, and for acquiring the piece of wirelessidentification information from the external device via wiredcommunications using the wired communication interface as a response tothe request; specifying the wireless queue by using the acquired pieceof wireless identification information and the correlation informationwhich is registered in the registration process by the OS; and executinga setup process, the setup process to enable the command program tooutput via the wireless communication interface commands to the externaldevice identified by the acquired piece of wireless identificationinformation by using the wireless queue.

According to another aspect, the disclosure provides a non-transitorycomputer readable storage medium storing a set of program instructionsinstalled on and executed by an information-processing device having awireless communication interface, a wired communication interface, auser interface, a controller, and a memory. The set of programinstructions includes: executing a storage process to store a commandprogram in the memory; executing an acquisition process for transmittinga request for a piece of wireless identification information to anexternal device, which is connected to the wired communicationinterface, via wired communications using the wired communicationinterface, and for acquiring the piece of wireless identificationinformation from the external device via wired communications using thewired communication interface as a response to the request, the piece ofwireless identification information identifying the external device andbeing used for wireless communication with the external device; in afirst case where the external device identified by the piece of wirelessidentification information is in a first state, executing a setupprocess to enable the command program to output via the wirelesscommunication interface commands to the external device identified bythe piece of wireless identification information according to a firstmethod; and in a second case where the external device identified by thepiece of wireless identification information is in a second statedifferent from the first state, executing the setup process to enablethe command program to output via the wireless communication interfacecommands to the external device identified by the piece of wirelessidentification information according to a second method different fromthe first method.

According to still another aspect, the disclosure provides aninformation-processing device. The information-processing deviceincludes a wireless communication interface, a wired communicationinterface, a user interface, a display, a memory, and a controller. Thememory stores an OS configured to execute: a pairing process toestablish a relationship between the OS and an external device forwireless communications via the wireless communication interface;obtaining a piece of wireless identification information from theexternal device via wireless communication using the wirelesscommunication interface; generating a wireless queue used for wirelesscommunication; and a registration process to register correlationinformation that correlates the generated queue with the obtained pieceof wireless identification information. The piece of wirelessidentification information identifies the external device and is usedfor wireless communication with the external device. The controller isconfigured to execute: a storage process to store a command program inthe memory; an acquisition process for transmitting a request for thepiece of wireless identification information to the external device,which is connected to the wired communication interface, via wiredcommunications using the wired communication interface, and foracquiring the piece of wireless identification information from theexternal device via wired communications using the wired communicationinterface as a response to the request; specifying the wireless queue byusing the acquired piece of wireless identification information and thecorrelation information which is registered in the registration processby the OS; and a setup process, the setup process to enable the commandprogram to output via the wireless communication interface commands tothe external device identified by the acquired piece of wirelessidentification information by using the wireless queue.

According to still another aspect, the disclosure provides aninformation-processing device. The information-processing deviceincludes a wireless communication interface a wired communicationinterface, a user interface, a memory, and a controller. The controlleris configured to execute: a storage process to store a command programin the memory; an acquisition process for transmitting a request for apiece of wireless identification information to an external device,which is connected to the wired communication interface, via wiredcommunications using the wired communication interface, and foracquiring the piece of wireless identification information from theexternal device via wired communications using the wired communicationinterface as a response to the request, the piece of wirelessidentification information identifying the external device and beingused for wireless communication with the external device; in a firstcase where the external device identified by the piece of wirelessidentification information is in a first state, a setup process toenable the command program to output via the wireless communicationinterface commands to the external device identified by the piece ofwireless identification information according to a first method; and ina second case where the external device identified by the piece ofwireless identification information is in a second state different fromthe first state, the setup process to enable the command program tooutput via the wireless communication interface commands to the externaldevice identified by the piece of wireless identification informationaccording to a second method different from the first method.

BRIEF DESCRIPTION OF THE DRAWINGS

The particular features and advantages of the disclosure as well asother objects will become apparent from the following description takenin connection with the accompanying drawings, in which:

FIG. 1(A) is a schematic diagram illustrating an information-processingdevice according to an embodiment and a printer;

FIG. 1(B) is a block diagram illustrating an internal structure of theinformation-processing device according to the embodiment;

FIG. 2 is a flowchart illustrating a process executed by a setupprogram;

FIG. 3(A) is an explanatory diagram illustrating a BT setup methodselection screen;

FIG. 3(B)-3(F) are explanatory diagrams illustrating examples of a BTdevice selection screen;

FIG. 4 is a flowchart illustrating step S110 shown in FIG. 2 in detail;

FIG. 5(A) is a flowchart illustrating step S111 shown in FIG. 2 indetail;

FIG. 5(B) is an explanatory diagram illustrating a queue name selectionscreen;

FIG. 6 is a flowchart illustrating step S112 shown in FIG. 2 in detail;

FIG. 7(A) is a flowchart illustrating a process continued from theprocess shown in FIG. 6;

FIGS. 7(B) and 7(C) are explanatory diagrams illustrating examples of aBT device selection screen; and

FIG. 8 is a flowchart illustrating step S112 shown in FIG. 2 accordingto a modification 1.

DETAILED DESCRIPTION

A conventional setup program as described in the background section ofthe present disclosure sets up a device driver on a personal computer(PC). However, for setting up the device driver the user must performtroublesome operations by using a user interface.

Specifically, in the course of the setup operation, an OS of aninformation-processing device displays a list of pieces of wirelessidentification information (hereinafter, simply referred to as “piecesof identification information”) on a display. Here, each piece ofidentification information is for identifying a printer capable ofperforming wireless communication with the information-processing deviceaccording to a near field communication standard such as Bluetooth(registered trademark). This list shows the pieces of identificationinformation for all devices including printers and other devicesprovided that the devices can communicate with theinformation-processing device according to the Bluetooth. Thus, the usercannot quickly specify apiece of identification information identifyinga printer target for the setup operation. Particularly in some types orversions of OS, the list shows pieces of identification information fornot only devices according to Bluetooth but also devices in conformancewith other wireless communication standards. In such cases, the usercannot easily specify the piece of identification information for thetarget printer.

It is necessary for completing setup properly that a pairing processbetween the OS and the printer has been completed. In the course ofsetup, before executing the pairing process, the OS displays pieces ofidentification information identifying unpaired devices, with which theOS does not execute the pairing process, without requiring useroperation through a user interface. On the other hand, in some cases,the user wishes to execute the setup for the printer which has completedthe pairing process with the OS. In such cases, the user must performtroublesome operations in order to make the OS display a list showingpieces of identification information identifying the paired printerswhich have completed the pairing process with the OS.

In view of the foregoing, it is an object of a present embodiment toprovide an information-processing device or a program that enables auser to set up a command program more easily.

The embodiment according to the disclosure will be described whilereferring to the drawings. While the disclosure has been described indetail with reference to the above embodiments, it would be apparent tothose skilled in the art that various changes and modifications may bemade thereto. For example, an order of processes described below may bemodified without changing a scope of the concept of the disclosure.

As shown in FIG. 1(A), an information-processing device 100 and aprinter 200 can wirelessly communicate with each other via a wirelesscommunication link 400. The printer 200 may be a multifunctionperipheral having various functions such as a print function, afacsimile function, and a copy function. The wireless communication link400 is established according to Bluetooth that is a wirelesscommunication standard (hereafter, referred to as “BT”). Bluetooth isstandardized by the IEEE as IEEE 802.15.1. The information-processingdevice 100 and the printer 200 perform wireless communications accordingto BT via the wireless communication link 400.

The information-processing device 100 and the printer 200 can alsocommunicate with each other via a communication cable 300. Thecommunication cable 300 is a cable conforming to the Universal SerialBus (USB; registered trademark) standard. The information-processingdevice 100 and the printer 200 perform wired communication via thecommunication cable 300 according to the USB standard.

In the following description, BT devices indicate devices conforming tothe BT, and USB devices indicate devices conforming to the USB. Theprinter 200 functions as both of a BT device and a USB device. Theinformation-processing device 100 functions as a central or master ofthe BT, and also functions as a USB host.

After a printer driver 18C has been set up, the information-processingdevice 100 outputs various commands to the printer 200 via thecommunication link 400. Hereinafter, the printer 200 for which theinformation-processing device 100 has set up the printer driver 18C willbe referred to as “the setup completed printer 200”. The commands aretypes of information described later and include print commands. Theprint command includes image data or designating information fordesignating image data (URL). The image data represents a target imageto be printed by the setup completed printer 200. The print commands arereceived by the setup completed printer 200 via the wirelesscommunication link 400. In response to the print command received, thesetup completed printer 200 prints the image based on the image data ona sheet, and discharges the printed sheet outside.

After the printer driver 18C is set up, the information-processingdevice 100 can also transmit various commands to the communication cable300. In a case where the setup completed printer 200 receives the printcommand via the communication cable 300, the setup completed printer 200prints the image based on the image data included in the print commandon a sheet.

The information-processing device 100 will be described in detail whilereferring to FIG. 1(B). The information-processing device 100 includes aCPU 11, a memory 12, a wireless communication interface 13, a wiredcommunication interface 14, a user interface 15, and a display 16.

The CPU 11 reads various programs stored in the memory 12 so as tointegrally control operations of the information-processing device 100.The CPU 11 is an example of the computer.

The memory 12 is a storage medium such as a ROM, a RAM, and an EEPROM,and a buffer provided in the CPU 11. The storage medium is anon-transitory, tangible medium. Note that electric signals conveyedalong a transmission path, such as the Internet, are one type of acomputer-readable storage medium, but are not a non-transitory, tangiblestorage medium.

The memory 12 has a program area 12A and a data area 12B. The programarea 12A is for storing various programs including an OS 18A, a setupprogram 18B, and a printer driver 18C. Hereinafter, the setup program18B is simply referred to as “the program 18B, and the printer driver18C is simply referred to as “the driver 18C”. The program 18B and thedriver 18C are respectively examples of a program and a command program.The programs stored in the memory 12 may include application programs(not shown) other than the program 18B and the driver 18C.

The OS 18A is a basic program of the information-processing device 100.

The program 18B is a single program or an aggregation of a plurality ofprogram modules. The program 18B is commonly called as an “installer”.The program 18 is a so-called integrated installer. The program 18B asthe integrated installer includes a plurality of drivers 18C. Here, eachdriver 18C supports one or more predetermined models or types ofprinters 200. The program 18B executed by the CPU 11 stores theplurality of drivers 18C, which are originally included in the program18B, in the program area 12A. That is, the plurality of drivers 18C isstores in the program area 12A separately from the program 18B.Subsequently, the program 18B sets up one or more drivers 18C supportingthe model of the printer 200 based on the user operation.

The program 18B may not be the integrated installer. In this case, theprogram 18B includes a driver 18C supporting single predetermined modelof printers 200.

During execution of the program 18B, various information and data areexchanged between the OS 18A and the program 18B. Specifically, theprogram 18B generates or obtains display data representing a screen tobe displayed on the display 16, and outputs the generated or obtaineddisplay data to the OS 18A. The OS 18A displays the screen representedby the generated or obtained display data on the display 16. FIG. 3(A)shows a BT setup method selection screen 31 as an example of such ascreen. As described above, the program 18B displays various screens onthe display 16 through the OS 18A.

After the driver 18C has been set up, various information and data areexchanged between the OS 18A and the driver 18C. Specifically, thedriver 18C can output to the OS 18A the various information and datawhich are to be transmitted to the setup completed printer 200 that thedriver 18C supports.

The driver 18C may not output the various information and data to the OS18A, but may be configured to output the various information and datadirectly to the wireless communication interface 13 or the wiredcommunication interface 14. That is, the driver 18C is a program thatenables the information-processing device 100 to transmit variouscommands to the model of the printers 200 supported by the driver 18C.

The data area 12B is for storing various information and data used byvarious programs.

The wireless communication interface 13 transmits various informationand data outputted from the OS 18A to the wireless communication link400 in accordance with the BT. The wireless communication interface 13receives various information and data transmitted from BT devicesexisting around the information-processing device 100 (hereinafter,referred to as “the peripheral BT devices”). The wireless communicationinterface 13 outputs the received various information and data to the OS18A. The OS 18A is configured to perform a pairing process according tothe BT with the peripheral BT devices by using wireless communicationsvia the wireless communication interface 13 for establishing arelationship with the peripheral BT device.

The wireless communication interface 13 transmits various informationand data outputted from the driver 18C to the wireless communicationlink 400. The wireless communication interface 13 receives variousinformation and data transmitted from the peripheral BT devices, andoutputs the receives various information and data to the driver 18C.

The wired communication interface 14 has one or more USB connectors (notshown). The communication cable 300 has a first plug (not shown) at oneend thereof and a second plug at another end thereof. The first plug canbe inserted into the USB connector of the wired communication interface14. The second plug can be inserted into a USB connector (not shown)provided in the USB device. The wired communication interface 14transfers various information and data from the OS 18A to thecommunication cable 300 connected to the USB connector thereof inaccordance with the USB standard. The wired communication interface 14receives various information and data transferred from the USB devicevia the communication cable 300, and then outputs the variousinformation and data to the OS 18A.

The wired communication interface 14 outputs signals specifying aprescribed voltage level in response to the communication cable 300transitioning from a non-inserted state in the connector of the wiredcommunication interface 14 to an inserted state.

The wired communication interface 14 transfers various information anddata from the driver 18C to the communication cable 300. In this case,the wired communication interface 14 also receives various informationand data transferred from the USB device via the communication cable300, and then outputs the received various information and data to thedriver 18C.

The user interface 15 accepts input operations by the user. The userinterface 15 includes a keyboard and a mouse. The keyboard outputsoperation information corresponding to keys operated by the user to theCPU 11. The mouse outputs position information indicating positions thatthe user has specified in a screen displayed on the display 16 to the OS18A or the driver 18C executed by the CPU 11 via the OS 18A. Each of theprogram 18B and the driver 18C specifies the positions in the screenthat the user has specified via the user interface 15 based on theposition information, and uses the specified positions in variousprocesses.

The user interface 15 may include other well-known input devices, suchas a pen-type input device, in addition to or instead of the keyboardand mouse.

The CPU 11 performs the processes described below according toinstructions in the programs. In the following description, actions suchas “determine,” “extract,” “select,” “calculate,” “decide,” “identify,”“acquire,” “receive,” “control,” “set,” and the like represent processesperformed by the CPU 11. Processes performed by the CPU 11 includeprocesses that control hardware through a controller such as the OS 18A.Note that the term “acquire” in this specification is used as a conceptthat does not necessarily require a request. In other words, a processby which the CPU 11 receives data without requesting that data isincluded in the concept of “the CPU 11 acquires data.” The term “data”described herein is expressed as bit strings that can be read by acomputer. Data of different formats are treated as the same data whenthe content of the data is essentially the same. The same holds true for“information” in this specification. An “instruction,” a “response,” a“request,” or the like is processed by communicating informationindicating the “instruction,” the “response,” or the “request.” Theterms “instruction,” “response,” and “request” may also be used todescribe information indicating an “instruction,” a “response,” or a“request.”

A process executed by the CPU 11 according to instructions described ina program may be described using abbreviated expressions, such as “theCPU 11 executes,” “the program 18B executes,” and “theinformation-processing device 100 executes.” Similarly, the input andoutput of information performed by the program 18B or the driver 18C viathe wireless communication interface 13, the wired communicationinterface 14, or the user interface 15 may be described in abbreviatedterms, such as “the CPU 11 receives,” “the program 18B transmits,” or“the information-processing device 100 acquires.”

Further, a process performed by the CPU 11 to determine whetherinformation A indicates circumstance B may be described conceptually as“determining whether circumstance B based on information A.” A processin which the CPU 11 determines whether information A indicatescircumstance B or circumstance C may be described conceptually as“determining whether circumstance B or circumstance C based oninformation A.”

The terms “data” and “information” used in this specification shareaspects of being bits or bit strings that computers can handle. Thecomputer treats “data” without considering the significance of itsindividual bits. In the case of “information,” on the other hand, thecomputer's operations branch based on the significance of the individualbits. Additionally, a “command” is a control signal prompting thedestination device to perform the next operation. A command may includeinformation and may itself possess the properties of information.

Further, “data” and “information” are treated as the same data andinformation even when the format (such as a text format, binary format,or flag format) is modified for different computers, provided that thecomputers can recognize the same content. For example, informationspecifying the number “two” may be stored in one computer as informationin the text format for the ASCII code “0x32”, and may be stored in adifferent computer as information in the binary format for the binarynotation “10”.

However, the distinction between “data” and “information” is notstrictly enforced; exceptions to the rule may be allowed. For example,data may be temporarily treated as information, while information may betemporarily treated as data. Further, certain bits or bit strings may betreated as data on one device and information on another. Further,information may be extracted from data, and data may be extracted frominformation.

Further, the phrase “in response to” in this specification indicatesthat the process specified before the phrase is to be executed when thecondition specified after the phrase has been met. Note that the timingat which the process is executed should be after the condition has beenmet, but need not be immediately after the condition is met.

Next, the process implemented by the program 18B of the embodiment willbe described with reference to FIGS. 1 through 7.

The program 18B is started in response to an operation that the userperforms through the user interface 15 (hereinafter simply called a“user operation”). However, the program 18B may be started in responseto a command received from the OS 18A or another application program.

In S11 of FIG. 2 the started program 18B displays a model selectionscreen on the display 16. The model selection screen includes one ormore model names of printers 200 as candidates for a target printer 200to be set up, whereby the user can identify the printers 200 from thedisplayed model names. Each model name is an object selectable throughuser operations. While the model selection screen is displayed, the userselects one or more model names displayed on the model selection screenas the target printer 200 to be set up. Further, in S11 the program 18Bspecifies the selected model name through the user operations.

In S12 the program 18B displays a connection method selection screen onthe display 16. The connection method selection screen includescharacter strings as options indicating connection methods by which theinformation-processing device 100 and the printer 200 can be connectedand communicated with each other to transmit print commands after setupis completed. The connection methods include at least wirelessconnection according to the BT and wired connection according to theUSB. The displayed character strings are objects selectable through useroperations.

In S13 the program 18B receives user operations for selecting aconnection method. In a case where the selected connection method is thewired connection according to the USB (S13, USB), the process goes toS14. Ina case where the selected connection method is the wirelessconnection according to the BT, the process goes to S15.

In S14 the program 18B executes a USB connection process. Specifically,the program 18B stores a driver 18C supporting each model name specifiedin S11 in the program area 12A. Further, in S14, the program 18B sets upthe stored driver 18C so that the information-processing device 100 cantransmit various commands to the printer 200 through the communicationcable 300. Since the process of S14 is well known in the art, a detaileddescription will not be provided. After executing S14, the program 18Bends the process in FIG. 2.

The driver 18C supporting the model name specified in S1 is not only thedriver that is setup through the processes from S15. Thus, instead ofexecuting S1 l prior to the process of S12, the process of S11 may beexecuted before the process S14 and after USB is selected in the processS13.

Through the processes from S15, the program 18B executes a setup processof the driver 18C (hereinafter, referred to as “the BT setup”) enablingthe information-processing device 100 to transmit various commands tothe printer 200 via the wireless communication link 400. The BT setupincludes a normal BT setup method and a USB-BT setup method. The normalBT setup method includes the process of S110. The USB-BT setup methodincludes the process of S112. The normal BT setup is one example of asetup method without using the wired communication interface 14. TheUSB-BT setup method is one example of a setup method using the wiredcommunication interface 14.

In S15 the program 18B displays the BT setup method selection screen 31(FIG. 3(A)) on the display 16. The BT setup method selection screen 31includes a plurality of selection objects 311-313 which can be selectedthrough user operations. The selection object 311 includes a characterstring “normal BT method” indicating the normal BT setup method. Theselection object 312 includes a character string “USB-BT method”indicating the USB-BT setup method. The selection object 313 includes acharacter string “cancel” for cancelling the BT setup. The process ofS15 is an example of the first display screen. The normal BT setupmethod (“normal BT method”) is an example of the first option. TheUSB-BT setup method (“USB-BT method”) is an example of the secondoption.

The program 18B receives user operations through the displayed BT setupmethod selection screen 31 while the BT setup method selection screen 31is displayed. When the selection object 313 (“cancel”) is selectedthrough the user operations (S16: YES), the BT setup is cancelled andthe program 18B ends the process shown in FIG. 2. On the other hand,when one of the selection objects 311 and 312 is selected through theuser operations (S16: NO), the programs 18B executes S17.

In S17 the program 18B stores all the drivers 18C included in theprogram 18B in the program area 12A. The process of S17 is an example ofthe storage process.

In S18 the program 18B deletes unspecified device information from thedata area 12B. The unspecified device information will be described asfollows. In a case where the printer 200 is connected to the wiredcommunication interface 14 through the wired connection, the OS 18Aexecutes a well-known plug and play process (hereinafter, referred to as“the normal PnP process”) with the connected printer 200. The normal PnPprocess is executed when the printer 200 establishes the wiredconnection with the wired communication interface 14 even in a statewhere no driver supporting this wire-connected printer 200 is stored inthe program area 12A. However, in a case where no driver supporting theprinter 200 is stored in the program area 12A, the OS 18A storesunspecified device information indicating that the printer 200 is anunknown device in the data area 12B. Once the unspecified deviceinformation is stored in the data area 12B, the OS 18A does not assign aprint queue to the driver 18C supporting the printer 200 even if theprinter 200 establishes wired connection with the printer 200 under astate where the driver 18C supporting the printer 200 is stored in theprogram area 12A.

In the embodiment, the OS 18A assigns a wired communication queue to thedriver 18C through the PnP process with the target printer 200, and thiswired communication queue is used in the BT setup according to theUSB-BT setup method as described in S112 of FIG. 2. Once the targetprinter 200 establishes the wired connection with the wiredcommunication interface 14 before starting the process shown in FIG. 2under a state where the driver 18C supporting the target printer 200does not stored in the program area 12A, unspecified device informationindicating that the target printer 200 is unknown device is stored inthe data area 12B. In this case, the driver 18C cannot be assigned withthe wired communication queue if the target printer 200 establisheswired connection with the wired communication interface 14 in S12.Further, if in S112 the OS 18A sets up an HCRP driver which is astandard driver included in the OS 18A, the OS 18A executes a forced PnPprocess. The same problem about the unspecified device informationarises in this case. Thus, in S18 the program 18B deletes all theunspecified device information related to the printer registered in thedata area 12B.

The normal PnP process is a PnP process executed by the OS 18A andtriggered by the signal (described above) from the USB connectorprovided in the wired communication interface 14 transitioning to theprescribed voltage level. The forced PnP process is different from thenormal PnP process in that the forced PnP process is executedspontaneously by the OS 18A.

In the embodiment, the program 18B deletes the unspecified deviceinformation. However, the program 18B may output a deletion command todelete the unspecified device information to the OS 18A. In this case,in response to the deletion command received, the OS 18A deletes all theunspecified device information related to the printer from the data area12B.

The process shifts to S19 after S18. In S19 the program 18B determineswhether the BT setup method is the normal BT setup method or the USB-BTsetup method. When the user operations select the selection object 311in the BT setup method selection screen 31, the program 18B determinesthat the normal BT setup method is selected (S19, NORMAL BT), andexecutes S110. On the other hand, when the user operations select theselection object 312, the program 18B determines that the USB-BT setupmethod is selected (S19: USB-BT), and executes S112.

In S110 the program 18B executes a process for specifying a targetprinter 200 via the normal BT setup method. The target printer 200 isalso a target of the process of S111 described later. FIG. 4 is aflowchart illustrating detailed steps in S110.

As shown in FIG. 4, in S21 the program 18B outputs a first transmissionrequest to the OS 18A. The first transmission request is information forrequesting the OS 18A to transmit each piece of candidate BT deviceinformation. The piece of candidate BT device information is a piece ofBT device information indicating a device candidate for the targetprinter 200 (hereinafter, referred to as “the candidate printer 200”).

Before the piece of BT device information is described in detail, thepairing process according to the general BT will be described. Each BTdevice transmits advertising packets to devices therearound. Eachadvertising packet includes a piece of BT identification informationincluded in and identifying the BT device that transmitted the packet,and a BT device name of the BT device. The piece of BT identificationinformation is for identifying the BT device in wireless communicationaccording to the BT, and is called as a BD address. The piece of BTidentification information is an example of the piece of identificationinformation and the wireless identification information. The BT devicename is a name of the BT device and is mainly used for the display inthe BT central (for example, the information-processing device 100)which is the receiving end of the advertising packet. The BT standarddefines a plurality of profiles defining operations of the BT devices.The advertising packet further includes at least one piece of profileinformation indicating a profile supported by the BT device of thetransmission source.

In the embodiment, an advertising packet transmitted from the printer200 is referred to as “the specific advertising packet”. A piece of BTidentification information included in the specific advertising packetis referred to as “the piece of specific BT information”. When theprinter 200 is shipped, the piece of specific BT information may includespecific model information identifying a model of the printer 200 whosedriver 18C the program 18B can set up (hereinafter, referred to as “thespecific model information”). The specific model information may be acharacter string identifying the model of the printer 200, such as amodel name or a part of model name, for example. The specific BTidentification information can be modified by user operations, and thusthe specific BT identification information may not contain any specificmodel information, at the time of wireless communication. The specificadvertising packet includes at least one of HCRP (Hard Copy CableReplacement Profile) and SPP (Serial Port Profile).

In response to user operations, the OS 18A acquires advertising packetstransmitted from the BT devices around the information-processing device100 by using the wireless communication interface 13. The OS 18Adisplays a BT device name included in each acquired advertising packeton the display 16. When one BT device name is selected through useroperations, the OS 18A executes a pairing process with the BT deviceidentified by the selected BT device name. Through the pairing process,the OS 18A registers in the data area 12B a piece of paired BT deviceinformation for indicating the BT device that has completed the pairingprocess with the information-processing device 100. The piece of pairedBT device information includes the BT device name, the piece of BTidentification information, the profile, and an encryption key to beused in wireless communications. Further, in a case where theadvertising packet is the specific advertising packet transmitted fromthe printer 200, the OS 18A creates a wireless communication queue forthis printer 200 in the data area 12B, and registers first correlationinformation in the piece of paired BT device information. Here, thefirst correlation information is for correlating the created wirelesscommunication queue with the piece of BT identification informationincluded in the acquired advertising packet. The wireless communicationqueue is a print queue used when the information-processing device 100transmits various commands (mainly print commands) to the printer 200identified by the piece of BT identification information correlated inthe correlation information via the wireless communication link 400after completion of setting up the driver 18C. This is a description ofthe pairing process according to the general BT.

In response to the first transmission request received in S21, that is,in response to the request from the program 18B, in S22 the OS 18Aexecutes an acquisition process for acquiring advertising packets fromthe peripheral BT devices. Specifically, the wireless communicationinterface 13 detects and acquires advertising packets transmitted fromperipheral BT devices. In other words, the wireless communicationinterface 13 detects the peripheral BT devices. The OS 18A acquires allthe advertising packets detected and acquired by the wirelesscommunication interface 13. Further, the OS 18A generates a piece of BTdevice information and registers the generated piece of BT deviceinformation in the data area 12B for each detected peripheral BT device.Each piece of BT device information includes a piece of BTidentification information included in a corresponding advertisingpacket, a BT device name, and a profile which are included in anacquired advertising packet.

In S23 the OS 18A specifies pieces of unpaired BT device informationfrom among the pieces of BT device information generated in S22 on thebasis of the pieces of paired BT device information registered in thedata area 12B. Specifically, from among the pieces of BT deviceinformation generated in S22, the OS 18A specifies the piece of BTdevice information including the piece of BT identification informationthat does not match a piece of BT identification information included inany piece of paired BT device information, as a piece of unpaired BTdevice information.

In S24 the OS 18A correlates status information with each of the piecesof paired BT device information and pieces of unpaired BT deviceinformation.

Specifically, the status information is either one of predeterminedfirst status information and predetermined second status information.The first status information indicates that the pairing process has beencompleted or the pairing is established. The second status informationindicates that the pairing process has not been completed, or thepairing is not established. The OS 18A correlates the first statusinformation to each piece of paired BT device information. Accordingly,the OS 18A generates, as an information set, a first information setincluding the piece of paired BT device information and the first statusinformation. Here, the piece of paired BT device information is a firstexample of the piece of candidate BT device information. Note even if aBT device already completing the pairing process is a device whoseadvertising packet is not detected by the wireless communicationinterface 13 in 22, the OS 18A correlates the first status informationwith the piece of BT device information of this paired BT device. Inother words, the OS 18A correlates the first status information witheach piece of BT device information which is not included in anyperipheral BT devices detected by the wireless communication interface13 but which has completed the pairing process once from among thepieces of paired BT device information.

Further, in S24 the OS 18A correlates the second status information toeach piece of unpaired BT device information. Thus, the OS 18Agenerates, as an information set, a second information set including thepiece of unpaired BT device information and the second statusinformation. The piece of unpaired BT device information is a secondexample of the piece of candidate BT device information. The firstinformation set indicates that the pairing process has been completedbetween the OS 18A and the BT device identified by the piece of pairedBT device information. The second information set indicates that thepairing process has not been completed between the OS 18A and the BTdevice identified by the piece of unpaired BT device information.

In this embodiment, the OS 18A executes S24 for each of the pieces of BTinformation included in the peripheral devices detected by the wirelesscommunication interface 13 and for each of the pieces of BT informationregistered in the data area 12B. However, the OS 18A may execute S24only for each of the pieces of BT information included in the peripheraldevices detected by the wireless communication interface 13.

In the embodiment, the first status information indicates that thepairing process has been completed and the second status informationindicates that the pairing process has not been completed. However, thefirst status information may indicate a first state of a BT device andthe second status information indicates a second state of the BT devicedifferent from the first state. A specific example of the first state isa state where the BT device has settings that permit execution of thepairing process. In this case, the second state is a state where the BTdevice has settings that prohibit execution of the pairing process.Another example of the first state is a state where the printer 200 asthe BT device can execute printing. In this case, the second state is astate where the printer 200 cannot execute printing. Alternatively, thefirst state is a state where the BT device has settings indicating thatthe BT device belongs to a specific group. In this case, the secondstate is a state where the BT device has settings indicating that the BTdevice does not belong to the specific group. Or, the first statusinformation indicates a first connection state and the second statusinformation indicates a second connection state different from the firstconnection state.

The information set may not include no status information when thesubject BT device has not completed the pairing process. In this case,the program 18B can recognize that the pairing process has not beencompleted when the information set does not include the first statusinformation. In this case, the second status information may not bedefined.

In S25 the OS 18A outputs all the generated information sets to theprogram 18B. In S25 the program 18B acquires the information sets fromthe OS 18A and stores the acquired information sets in the data area12B. Accordingly, the program 18B can acquire each piece of BTidentification information identifying the peripheral BT device detectedby the wireless communication interface 13. The acquired piece of BTidentification information can be classified into one of a pluralitytypes of BT identification information (I)-(IV).

Type (I): A piece of BT identification information included in a BTdevice that has completed the pairing process with theinformation-processing device 100 and having specific model information.

Type (II): A piece of BT identification information included in a BTdevice that has completed the pairing process with theinformation-processing device 100 and not having specific modelinformation.

Type (III): A piece of BT identification information included in a BTdevice that has not completed the pairing process with theinformation-processing device 100 and having specific model information.

Type (IV): A piece of BT identification information included in a BTdevice that has not completed the pairing process with theinformation-processing device 100 and not having specific modelinformation.

In S26 the program 18B determines a display style representing the typeof BT identification information based on status information and modelinformation for each piece of BT identification information acquired inS25. The display style defines a style or manner by which a piece of BTidentification information is displayed so that the user can recognize atype of the piece of BT identification information. In other words, thedisplay style defines a manner to display a piece of BT identificationinformation for representing a type of the piece of BT identificationinformation. The status information and the specific model informationare examples of the prescribed information. Specifically, the program18B determines a display style (1) representing the Type (1) for a pieceof BT identification information if the piece of BT identificationinformation is included in the first information set having the firststatus information, and has specific model information. The program 18Bdetermines a display style (2) representing the Type (II) for a piece ofBT identification information if the piece of BT identificationinformation is included in the first information set having the firststatus information, and does not have specific model information. Theprogram 18B determines a display style (3) representing the Type (II)for a piece of BT identification information if the piece of BTidentification information is included in the second information sethaving the second status information, and has specific modelinformation. The program 18B determines a display style (4) representingthe Type (IV) for a piece of BT identification information if the pieceof BT identification information is included in the second informationset having the second status information, and does not have specificmodel information. S26 is an example of the first determination process.The display styles (1)-(4) are different from each other. The displaystyles (1)-(4) are first examples of first through fourth display style.

Each screen displayed on the display 16 will be explained in detail. Asa BT device selection screen 32 in the example shown in FIG. 3(B), eachscreen has a rectangular shape having a side extending from an origin Oin a direction 5 and a side extending from the origin O in a direction 6orthogonal to the direction 5. Specifically, when a display surface ofthe display 16 is parallel to a vertical direction and faces the user,the origin O is positioned at a left upper corner of each screen seeingfrom the user, and the direction 5 is a rightward direction and thedirection 6 is a downward direction.

In S27 of FIG. 4, the program 18B generates display data representingthe BT device selection screen 32. As shown in FIG. 3(B), the BT deviceselection screen 32 includes a search object 321, a plurality of textobjects 322-327, and pieces of BT identification information A-D.

The search object 321 is a search box selected by the user who wishes toinput keywords. After the user selects the search object 321, the userinputs keywords using the keyboard. The inputted keywords are used as acharacter string indicating model information when searching. The searchobject 321 is located near the right upper corner P1 that is apart fromthe origin O in the direction 5 in the BT device selection screen 32,for example.

Each of the text objects 322-327 includes a character string forindicating a type of the piece of BT identification information. Thatis, the display styles are implemented by displaying the text objects322-327 and arranging the pieces of BT device information at areasclassified by the text objects 322-327.

The text object 322 includes a character string “Supported BT devices”shown in FIG. 3(B) for indicating that the pieces of BT identificationinformation are included in the type of printers 200 supported by thedriver(s) 18C. The text object 323 includes a character string “other BTdevices” for indicating that the pieces of BT identification informationare included in the type of printers 200 that are supported by none ofthe drivers 18C. The text objects 322 and 323 are located at downstreamside of the search object 321 in the direction 6 in the BT deviceselection screen 32. The text object 322 is located at a position sothat the text object 322 can be firstly recognized by the user among thetext objects 322-327. That is, the text object 322 is closest to theorigin O than other text objects to the origin O. The text object 323 islocated at a position so that the text object 323 is apart from the textobject 322 in the direction 5.

Each of the text objects 324 and 325 includes a character string “thepairing is established” for indicating that the pieces of BTidentification information included in the BT devices that havecompleted the pairing process. The text objects 324 and 325 are locateddownstream side of the text objects 323 and 323 in the direction 6 sothat the text objects 324 and 325 are in contact with the text objects322 and 323 respectively in the BT device selection screen 32.

The program 18B acquires, as a piece of BT identification information A,the piece of BT identification information for which the display style(1) is determined from the data area 12B, and arranges the acquiredpiece of BT identification information A near and at downstream side ofthe text object 324 in the direction 6. There is likely that the printer200 identified by the piece of BT identification information A is set asthe target for setup. Thus, the piece of BT identification information Ais located at a position closer to the origin O than other BTidentification information B-D (described below) to the origin O.

When a plurality of pieces of BT identification information A isacquired, the program 18B arranges the plurality of pieces of BTidentification information A in the direction 6 below the text object324. There are cases where no piece of BT identification information Ais acquired and displayed. This holds true for other pieces of BTidentification information B-D.

The program 18B acquires, as a piece of BT identification information C,the piece of BT identification information for which the display style(2) is determined from the data area 12B, and arranges the acquiredpiece of BT identification information C near and at downstream side ofthe text object 325 in the direction 6.

Each of the text objects 326 and 327 includes a character string “thepairing is not established” indicating that the piece of BTidentification information included in the BT device that has notcompleted the pairing process. The program 18B arranges the text objects326 and 327 near and at downstream side of the pieces of identificationinformation A and C in the direction 6 respectively in the BT deviceselection screen 32. The text objects 326 and 327 are arranged adjacentwith each other in the direction 5 in the BT device selection screen 32.

The program 18B acquires, as a piece of BT identification information B,the piece of BT identification information for which the display style(3) is determined from the data area 12B, and also acquires, as a pieceof BT identification information D, the piece of BT identificationinformation for which the display style (4) is determined from the dataarea 12B. The program 18B arranges the acquired pieces of BTidentification information B and D near and at downstream side of thetext objects 326 and 327 in the direction 6 respectively in the BTdevice selection screen 32.

Each of the pieces of BT identification information is an object thatcan be selected through user operations. One or more pieces of BTidentification information A-D can be selected through the useroperations. The pieces of BT identification information C-D may beobjects that cannot be selected through user operations.

In the above example, the display data represents the BT deviceselection screen 32 including the text objects 322-327. However, thedisplay data is not limited thereto, and, may represent a BT deviceselection screen 32 including none of the text objects 322-327 as shownin FIG. 3(C). In this case. the pieces of BT identification informationA-D are arranged at areas different from each other in the BT deviceselection screen 32. That is, the pieces of BT identificationinformation to which the same display style is determined are located ina same area. Thus, the pieces of BT identification information A areseparated from other BT identification information B-D. That is, piecesof BT identification information to which the same display style isdetermined are separated from pieces of BT identification information towhich other display styles are determined. Even if the display screen 32does not include the text objects 322-327, all the pieces of BTidentification information acquired in S25 can be displayed on thedisplay 16 according to the determined display styles.

In the above example, one set of display data represents the BT deviceselection screen 32 including the search object 321 and the pieces of BTidentification information A-D. However, two sets of display data may begenerated separately. In this case, one set of display data represents ascreen including the search object 321, and another set of display datarepresents a screen including the pieces of BT identificationinformation.

In S28 (FIG. 4) the program 18B starts counting a time. The counted timeis a period of time elapsed from start of counting by a timer (notshown). Further, in S28 the program 18B displays the BT device selectionscreen 32 on the display 16 based on the display data generated in S27.Thus, the program 18B displays the search object 321. In this case, theprogram 18B displays the text objects 322-327 for implementing therespective display styles determined in S26, and displays a list ofpieces of BT identification information acquired in S25. That is, theprogram 18B displays the pieces of BT identification information A, C,B, D, which are the types (I)-(IV), in the display styles (1)-(4)respectively. The process of S28 is an example of the first displayprocess.

The user can select one or more pieces of BT identification informationon the display 16 through user operations. Or, the user can select thesearch object 321 and input keywords therein. In S28 the program 18Breceives such user operations.

In S29 the program 18B determines whether one or more pieces of BTidentification information are selected through the user operations.When one or more pieces of BT identification information are selectedthrough the user operations (S29: YES), the program 18B specifies theselected one or more pieces of BT identification information in the dataarea 12B as pieces of BT identification information for the targetprinters 200 (hereinafter, referred to as “the pieces of target BTidentification information”). Subsequently, the program 18B exits theprocess shown in FIG. 4 and goes to S111 of FIG. 2. On the other hand,when no BT identification information is selected, the program 18B goesto S210.

In S210 the program 18B determines whether a prescribed time periodelapsed from the start of counting based on the counted time. When theprescribed time period does not elapse (S210: NO), the program 18B goesto S211. When the prescribed time period elapses (S210: YES), theprogram 18B executes S21 again. Note BT devices may change theirpositions with elapse of time. Thus, after the program 18B executes S21again if YES determination is made in S210, in S28 the program 18Bdisplays an updated BT device selection screen 32 in accordance with BTdevices detected at that time.

In S211 the program 18B determines whether keywords are received in thesearch object 321 through user operations. When no keyword is received(S211: NO), the process returns to S29. When keywords are received(S211: YES), the program 18B proceeds to S212.

In S212 the program 18B specifies, as one or more pieces of BTidentification information E, one or more pieces of BT identificationinformation which are included in the piece of candidate BT deviceinformation and related to the inputted keywords. Here, the phrase“related to the inputted keywords” indicates “partial or perfectmatching the inputted keywords”. The piece of BT identification isdetermined to partially match the keywords if the keywords are identicalwith words included in the piece of BT identification information exceptseveral letters.

In S213 the program 18B determines a display style (5) representing atype (V) for the one or more pieces of BT identification information E.The one or more pieces of BT identification information determined asthe display style (5) are related to the keywords. S212 is an example ofthe second determination process. The display style (5) is an example ofthe fifth display style.

In S214 the program 18B generates display data representing a BT deviceselection screen 32 (FIG. 3(D)) including only the one or more pieces ofBT identification information E specified in S212 according to thedisplay style (5).

In S215 the program 18B resets the counted time by the timer, andrestart counting a time. Further, in S215 the program 18B displays theBT device selection screen 32 represented by the display data generatedin S214. That is, the program 18B displays the pieces of BTidentification information related to the keywords in the display style(5) determined in S213. S215 is an example of the second displayprocess. Subsequently, the program 18B receives user operations forselecting one or more pieces of BT identification information displayed,and executes S29 again based on the received user operations.

In the above example, the program 18B generates the display datarepresenting the BT device selection screen 32 having only the pieces ofBT identification information E in S214. However, in S214 the program18B may generate display data representing a BT device selection screen32 including other pieces of BT identification information A-D inaddition to the pieces of BT identification information E so that thedisplay style of the pieces of BT identification information E isdifferent from those of the piece of BT identification information A-D.For example, as shown in FIG. 3(E), the display data may represent thepieces of BT identification information E in a shape (more specifically,a size) different from those of the pieces of BT identificationinformation A-D. Alternatively, as shown in FIG. 3(F), objects 328 maybe arranged on or near the pieces of BT identification information E.Each object 328 is a drawing or graphical object showing that the pieceof BT identification information E is related to the keywords.Accordingly, the user can easily recognize the piece of BTidentification information E.

After receiving the piece(s) of BT identification information via theuser interface 15 in S29 (FIG. 4), in S111 of FIG. 2 the program 18Bexecutes a setup process according to the normal BT setup method. FIG.5(A) is a flowchart illustrating detailed step of S111.

At the beginning of S31 (FIG. 5(A)), the program 18B has alreadyspecified one or more pieces of target BT identification information inthe data area 12B (see also S29 of FIG. 4). In S31 the program 18Bdesignates one piece of target BT identification information which hasnot been designated among the specified one or more pieces of target BTidentification information. Hereinafter, the piece of target BTidentification information designated in S31 is referred to as “thedesignated piece of BT identification information”, and the targetprinter 200 indicated by the designated piece of BT identificationinformation is referred to as the designated printer 200. The designatedpiece of BT identification information is an example of the designatedidentification information.

In S32 the program 18B determines whether the designated piece of BTidentification information is correlated with the first statusinformation or the second status information. When the designated pieceof BT identification information is correlated with the first statusinformation (S32: FIRST), the program 18B goes to S311. On the otherhand, when the designated piece of BT identification information iscorrelated with the second status information (S32: SECOND), the program18B goes to S33. Alternatively, in S32 the program 18B may determinewhether a display style determined for the designated piece of BTidentification information is a prescribed specific display style. Thespecific display style is one of the display styles (1) and (2). Whenthe display style is one of the display styles (1) and (2), the program18B goes to S311, otherwise the program 18B goes to S33. S33 is anexample of the determination process.

In S33 the program 18B displays a confirmation screen on the display 16.In the confirmation screen, permission or prohibition of execution ofthe pairing process can be selected by user operations. S33 is a thirdexample of the second display process. While displaying the confirmationscreen, the program 18B receives the user operations. When prohibitionof execution of the pairing process is selected through the useroperations (S34: NO), the program 18B proceeds to S317. On the otherhand, when permission of execution of execution of the pairing processis selected (S34: YES), the program 18B proceeds to S35.

In S35 the program 18B displays an executing pairing screen on thedisplay 16. The executing pairing screen shows that the pairing processis currently executed. In S36 the program 18B outputs a pairing commandand the designated piece of BT identification information to the OS 18Aso as to instruct the OS 18A to execute the pairing process with thedesignated printer 200. S36 is an example of the commanding process.

In response to reception of the pairing command, in S37 the OS 18Aexecutes the pairing process with the designated printer 200. Throughthis pairing process, the OS 18A registers in the data area 12B a pieceof paired BT device information for indicating the designated printer200. The OS 18A generates a wireless communication queue in the dataarea 12B, and stores first correlation information for correlating thewireless communication queue with the designated printer 200 in the dataarea 12B.

In S38 the OS 18A outputs execution results that are information forspecifying whether the pairing process is successful or not.

The program 18B receives the execution results from the OS 18A, and inS39 determines whether the pairing process is successful based on thereceived execution results. When the pairing process is successful (S39:YES), the program 18B executes S311. When the pairing process is failed(S39: NO), the program 18B executes S310.

In S310 the program 18B displays a message screen on the display 16. Themessage screen includes a character string indicating a message toprompting the user to power on the designated printer 200 and toactivate the BT function of the designated printer 200. The messagescreen further includes a character string indicating a message toprompt the user to perform user operations for turning on a BT switch inthe OS 18A, and a message to prompt the user to check connection stateof an BT antenna provided in the information-processing device 100.Thereafter, the program 18B executes S317.

In the processes from S311 the program 18B sets up the driver 18C sothat various commands can be transmitted to the designated printer 200having the designated piece of BT identification information via thewireless communication interface 13. The series of processes from S311are an example of the setup process. In a case where the first statusinformation is determined in S32 and thereafter S311 is directlyexecuted, the series of processes executed by the program 18B is anexample of the setup process in the first method. In a case where thesecond status information is determined in S32 and thereafter S311 isexecuted via S37, the series of processes executed by the program 18B isan example of the setup process in the second method.

In S311 the program 18B determines whether the designated printer 200supports HCRP. Specifically, the program 18B determines whether thepiece of BT device information, which includes the designated piece ofBT identification information, includes HCRP. When the HCRP is notincluded (S311: NO), the program 18B executes S314. When the HCRP isincluded (S311: YES), the program 18B executes S312.

In S312 the program 18B displays a SPP/HCRP selection screen on thedisplay 16. In S312 is an example of the third display process. In theSPP/HCRP selection screen, either one of SPP and HCRP, as selectableobjects, can be selected through user operations. Thus, the program 18Breceives the user operations. When the SPP is selected through the useroperations (S313: YES), the program 18B executes S314. When the HCRP isselected through the user operations (S313: NO), the program executesS318.

In S314 the program 18B transmits a port name request and the designatedpiece of BT identification information to the OS 18A. The port namerequest is for requesting the OS 18A to assign the designated printer200 to a first communication port so called “COM port” and to return aname of the assigned first communication port (hereinafter, referred toas “the port name”) to the program 18B. The port name request includesthe designated piece of BT identification information. The firstcommunication port is a serial port.

In response to the port name request received, the OS 18A assigns thedesignated printer 200 to the first communication port, and registerssecond correlation information in the data area 12B. The secondcorrelation information is for correlating the assigned firstcommunication port with the piece of BT device information including thedesignated piece of BT identification information. In S315 the OS 18Aoutputs the name of the assigned first communication port to the program18B.

In response to the port name received, in S316 the program 18B specifiesa driver 18C that supports the model indicated by the model informationin the designated piece of BT identification information and supportsthe SPP among the drivers 18C stored in the data area 12B in S17. Theprogram 18B registers third correlation information in the data area12B. The third correlation information is for correlating the specifieddriver 18C with the acquired port name. The specified driver 18C, thewireless communication queue, the first communication port, and thedesignated printer 200 are correlated with each other by the first,second, and third correlation information. Accordingly, theinformation-processing device 100 can transmit various commands (mainlyprint commands) to the designated printer 200 via the driver 18Csupporting the SPP by using the wireless communication queue. Theprogram 18B displays a setup completion screen on the display 16, andthereafter proceeds to S317. The setup completion screen is fornotifying that the setup of the driver 18C supporting the SPP has beencompleted.

In S317 the program 18B determines whether all the pieces of target BTidentification information are designated. When all the pieces of targetBT identification information are designated (S317: YES), the program18B displays a setup completion screen on the display 16, and thereafterexits the process of FIG. 5(A) to end the process shown in FIG. 2. Thesetup completion screen is for notifying that the setup of the driver(s)18C has been completed. On the other hand, when there remain anundesignated piece of target BT identification information (S317: NO),the program 18B repeats S31. Accordingly, the program 18B executes asetup process of each piece of BT identification information when aplurality of pieces of BT identification information is designatedthrough the user operations in the process of S29 shown in FIG. 4.

In S318 the program 18B executes an HCRP setting process. An HCRP BTcommunication driver is a standard driver of the OS 18A which acts as atrigger for forced PnP. In the HCRP setting process, the program 18Boutputs to the OS 18A a command for setting up the HCRP BT communicationdriver, and outputs to the OS 18A the piece of BT device informationincluding the designated piece of BT identification information. Basedon the command for setting up, the OS 18A assigns a second communicationport which is a parallel port to the designated printer 200, specifies adriver 18C supporting a model indicated by the inputted piece of BTdevice information, and registers fourth correlation information in thedata area 12B. The fourth correlation information is for correlating theassigned second communication port with the inputted piece of BT deviceinformation and the driver 18C. The driver supporting the HCRP, thewireless communication queue, the second communication port, and thespecified printer 200 are correlated with each other by the first andfourth correlation information. Accordingly, the information-processingdevice 100 can transmit various commands (mainly print commands) to thedesignated printer 200 via the driver supporting the HCRP by using thewireless communication queue for the designated printer 200.Subsequently, the OS 18A outputs a setup completion notificationnotifying that setup of the driver supporting the HCRP has beencompleted to the program 18B. The program 18B displays a setupcompletion screen on the display 16, and thereafter proceeds to S317.The setup completion screen is for notifying that the setup of thedriver supporting the HCRP has been completed.

In S112 (FIG. 2) the program 18B executes a process for specifying thetarget printer 200 and a setup process according to the USB-BT setupmethod. FIG. 6 is a flowchart illustrating detailed steps of S112.

In S41 of FIG. 6 the program 18B displays a connection requirementscreen on the display 16. The connection requirement screen is forrequiring the user to connect one or more printers 200 candidate for theBT setup according to the USB-BT setup method (hereinafter, referred toas the candidate printers 200) to the information-processing device 100by using cables. According to the connection requirement screen, in S42the user connects the candidate printer 200 to theinformation-processing device 100 via the communication cable 300. Thatis, the printer 200 establishes wired connection to theinformation-processing device 100. The information-processing device100A can be concurrently connected to a plurality of candidate printers200 up to the number of connectors provided in the wired communicationinterface 14.

In response to the wired connection established with an candidateprinter 200, in S43 the OS 18A executes a normal PnP process with thecandidate printer 200. In the normal PnP process, the OS 18A acquires aUSB device descriptor from the candidate printer 200 by the wiredcommunication. The OS 18A extracts a vendor ID and a product ID from theacquired USB device descriptor, and registers the extracted vendor IDand product ID as USB device information in the data area 12B. The OS18A assigns a third communication port to the candidate printer 200, andregisters fifth correlation information in the data area 12B. The fifthcorrelation information is for correlating the assigned thirdcommunication port with the USB device information. Further, in S43 theOS 18A generates a wired communication queue for the candidate printer200 in the data area 12B. The wired communication queue is a print queueused when the information-processing device 100 transmits variouscommands (mainly, print commands) to the candidate printer 200 via thecommunication cable 300. The OS 18A registers sixth correlationinformation for correlating a queue name with the USB device informationof the printer 200 in the data area 12B. The queue name is informationindicating a name of the wired communication queue. Each queue name isnamed based on the corresponding vendor ID and product ID. The thirdcommunication port, the queue name of the wired communication queue, andthe USB device information identifying the candidate printer 200 arecorrelated with each other by the fifth and sixth correlationinformation. Accordingly, the information-processing device 100 cantransmit various commands to the candidate printer 200 by using thewired communication queue for the candidate printer 200.

In S44 the OS 18A outputs a queue generation notification together withthe queue name to the program 18B. The queue generation notification isfor notifying that the wired communication queue is generated for thecandidate printer 200.

The OS 18A repeats the processes of S43 and S44 for each candidateprinter 200 that establishes wired connection with theinformation-processing device 100.

In response to reception of the queue generation notification, in S45the program 18B displays a queue name selection screen 41 shown in FIG.5(B). The process of S45 is an example of the second display process.The queue name selection screen 41 includes one or more selectionobjects 411, a selection object 412, and a selection object 413. Oneselection object 411 is displayed in the example shown in FIG. 5(B).Each selection object 411 corresponds to the queue name acquired in S44.As shown in the example of FIG. 5(B), the selection object 411 includesa character string “queue A” indicating the queue name. The selectionobject 411 is an example of a third option. The selection object 412includes a character string “cancel” indicating to cancel the BT setup.The selection object 413 includes a character string “next”. Theselection object 413 is selected via the user interface 15 in a casewhere the user wishes to proceed to the setup process. The user selectsall the selection objects 411 having the queue names for which the userwishes to proceed to the setup process via the user interface 15, andsubsequently operates the selection object 413.

While displaying the queue name selection screen 41, in S45 the program18B receives user operations. When the selection object 412 is selectedthorough the user operations (S46: CANCEL), the program 18B determinesthat the BT setup is cancelled through the user operations, and exitsfrom the process of FIG. 6 to end the process of FIG. 2. On the otherhand, when one or more selection objects 411 and the selection object413 are selected through user operations (S46: NEXT), the program 18Bgoes to S47.

In S47 the program 18B specifies, as a specified queue name, one ofunspecified queue name(s) corresponding to the selection object(s) 411selected through the user operations. Hereinafter, the wiredcommunication queue having the specified queue name is referred to as“the specified wired communication queue”. The candidate printer 200corresponding to the specified wired communication queue is referred toas “the specified printer 200”.

In S48 the program 18B outputs a second transmission request to the OS18A. The second transmission request includes the specified queue name,and is for requesting the specified printer 200 to transmit a piece oftransmit BT device information to the information-processing device 100.The OS 18A transmits the second transmission request from the wiredcommunication interface 14 to a connector (or a port) specified by thespecified wired communication queue. In response to the secondtransmission request received, the specified printer 200 acquires thepiece of BT device information prestored in its memory (not shown). InS49 the specified printer 200 transmits the acquired piece of BT deviceinformation to the communication cable 300. The wired communicationinterface 14 transfers the piece of BT device information transmittedfrom the communication cable 300 to the specified wired communicationqueue.

In S49 the OS 18A outputs the piece of BT device information stored inthe specified wired communication queue to the program 18B. In responseto the piece of BT device information (the piece of BT identificationinformation) received in S49, the program 18B executes S410.

In S410 the program 18B transmits a third transmission request to the OS18A, and in S411 acquires from the OS 18A all the pieces of paired BTdevice information that the OS 18A has as a response to the thirdtransmission request.

In S412 the program 18B determines whether the piece of BT deviceinformation acquired in S49 matches one of the pieces of paired BTdevice information acquired in S411. In other words, the program 18Bdetermines whether a wireless communication queue for the BT deviceincluding the piece of BT device information acquired in S49 isspecified based on the first correlation information by determiningwhether the piece of BT device information acquired in S49 matches oneof the pieces of paired BT device information acquired in S411. When thepiece of BT device information acquired in S49 matches none of thepieces of paired BT device information (S412: NO), the program 18Bexecutes S413 for commanding execution of the pairing process since theprogram 18B cannot specify a wireless communication queue correlated bythe first correlation information registered in the pairing process. Onthe other hand, when the piece of BT device information acquired in S49matches one of the pieces of paired BT device information (S412: YES),that is, the program 18B specifies a wireless communication queuecorrelated by the first correlation information, the program 18Bexecutes S418 shown in FIG. 7(A).

In a case where the information-processing device 100 has not completedthe pairing process with the specified printer 200, in S413 the program18B transmits to the OS 18A a pairing command and a piece of BTidentification information (hereinafter, referred to as “the specifiedpiece of BT identification information”) included in the piece of BTdevice information acquired in S49. The process of S413 is an example ofa commanding process. The program 18B may execute same processes asS33-S35 (FIG. 5(A)) immediately before executing S413.

In response to the pairing command received, in S414 the OS 18A executesthe pairing process with the specified printer 200. The process of S414is the same as that of S37 (FIG. 5(A)) except that the target of thepairing process is the specified printer 200 in S414, and the OS 18Aexecutes the forced PnP process in a case where the specified printer200 supports the HCRP in S414.

In S415 the OS 18A outputs execution results to the program 18B. Theexecution results indicate whether the pairing process is successful ornot. When the received execution results indicate that the pairingprocess is successful (S416: YES), the program 18B executes S418 shownin FIG. 7(A). When the received execution results indicate that thepairing process is failed (S416: NO), the program 18B executes S417.

Similarly to S310 (FIG. 5(A)), in S417 the program 18B displays on thedisplay 16 a message screen for prompting the user to power on thespecified printer 200 and to activate the BT function of the specifiedprinter 200. The message screen further includes a character stringindicating a message to prompt the user to perform user operations forturning on a BT switch in the OS 18A, and a message to prompt the userto check connection state of an BT antenna provided in theinformation-processing device 100. Subsequently, the program 18Bexecutes S423 shown in FIG. 7(A).

Through the processes from S418, the program 18B sets up the driver 18Cso that the information-processing device 100 can transmit variouscommands to the printer 200 having the specified piece of BTidentification information via the wireless communication interface 13by using the wireless communication queue. The processes from S418,especially the processes of S422 and S424 are an example of the setupprocess. The processes from S418, in which S418 is directly executedafter YES determination of S412 (FIG. 7(A)), is made are an example ofthe setup process in the first method. The processes from S418, in whichS418 is executed via S414 in a case where NO determination of S412 ismade, are an example of the setup process in the second method.

When the information-processing device 100 has completed the pairingprocess with the specified printer 200, in S418 (FIG. 7(A)) the program18B specifies the wireless communication queue correlated with the pieceof BT identification information acquired in S49 by the firstcorrelation information registered in the pairing process. Here, inorder to execute the setup process correctly, it is preferable tospecify the wireless communication queue after confirming that thespecified piece of BT identification information includes the specificmodel information. Further, in S418 the program 18B displays an SPP/HCRPselection screen similarly to S312 (FIG. 5(A)), and subsequentlyreceives user operations. In S419 the program 18B determines whether SPPis selected through user operations. When the SPP is selected (S419:YES), the program 18B executes S420. When SPP is not selected (S420:NO), the program 18B executes S424.

The processes S420-S422 are the same as the processes S314-S316 whichare executed according to communications between the program 18B and theOS 18A. Note that wired communications between the program 18B and theOS 18A is used communication in this case. However, wirelesscommunications may be used, or combination of wireless communicationsand wired communications may be used. Accordingly, theinformation-processing device 100 can transmit various commands mainlyprint commands to the specified printer 200 via the driver 18Csupporting the SPP.

In S423 the program 18B determines whether all of the queue name(s)corresponding to the selected selection object(s) 411 are specified.When all of the queue name(s) are specified (S423: YES), the program 18Bdisplays the setup completion screen on the display 16, and thereafterexits from the process shown in FIGS. 6 and 7(A) to end the processshown in FIG. 2. On the other hand, when there remains an unspecifiedqueue name (S423: NO), the program 18B repeats S47 (FIG. 6).

In S424 the program 18B executes an HCRP setting process. The HCRPsetting process in S424 is the same as that in S318 (FIG. 5(A)) exceptthat in S424 the OS 18A execute the forced PnP process with thespecified printer 200. Subsequent to S424, the program 18B executes theprocess of S423 described above. Note that wired communications betweenthe program 18B and the OS 18A is used in this case. However, wirelesscommunications may be used, or combination of wireless communicationsand wired communications may be used.

Next, modifications of the embodiment will be described.

[Modification 1]

In the embodiment, the program 18B executes the process shown in FIGS. 6and 7(A). However, the program 18B executes a modified process of S112as illustrated in shown in FIG. 8. The modified process of S112 isbasically the same as the process shown FIGS. 6 and 7(A) except thefollowing points. That is, step S47A is executed in the process of FIG.8, instead of executing step S47. Further, the modified process of S112executes steps S51-S54 between steps S49 and S410. Step S423 (FIG. 7(A))is not executed in the modified process of S112. The details of themodified process of S112 is described below.

In S47A (FIG. 8) the program 18B specifies, as specified queue names,all of unspecified queue names corresponding to the selection objects411 selected through the user operations.

In this case steps S48-S49 are repeated for each specified queue names.After S48-S49 are executed for all the specified queue names, theprogram 18B shifts to S51. Alternatively, in S48 the program 18Btransmits the second transmission request to the OS 18A for requestingeach specified printer 200 to transmit a piece of transmit BT deviceinformation to the information-processing device 100. In this case, theOS 18A receives a piece of BT device information from each specifiedprinter 200 and transmits all the received pieces of BT deviceinformation from the program 18B to the program 18B by using thecorresponding specified wired communication queues.

After a prescribed period of time has elapsed from execution of S48, inS51 the program 18B determines whether at least one piece of BTidentification information is acquired in S49. When no piece of BTidentification information is acquired (S51: NO), the program 18Bexecutes S52. When at least one piece of BT identification informationis acquired (S51: YES), the program 18B executes S53.

In S52 the program 18B displays a first repeat screen on the display 16.The first repeat screen includes a character string indicating a messageto prompt the user to execute the process shown in FIG. 2 over againafter connecting each printer 200 to the wired communication interface14 via a communication cable 300 over again. After S52 is executed, theprogram 18B exits the process of FIG. 8 and ends the process of FIG. 2.

In S53 the program 18B determines whether all of the pieces of BTidentification information corresponding to the selected selectionobjects 411 are acquired in S49. When at least one piece of BTidentification information is not acquired (S53: NO), the program 18Bexecutes S54. When all of the pieces of BT identification informationcorresponding to the selected selection objects 411 are acquired (S54:YES), the program 18B executes S410.

In S54 the program 18B displays a second repeat screen on the display16. The second repeat screen includes a character string indicating amessage to prompt the user to execute the process shown in FIG. 2 overagain after connecting each printer 200, from which the BTidentification is not acquired, to the wired communication interface 14via a communication cable 300 over again. After S54 is executed, theprogram 18B executes S410.

After executing S54, the program 18B executes S410 and S411 similarly tothe embodiment. Subsequently, the program 18B repeatedly executesS412-S424 for each piece of BT device information acquired in S49. Thatis, either one of S422 and S424 is executed for each specified printer200 whose BT device information is acquired in S49 for setting up acorresponding driver 18C. After executing either one of S422 and S424for each specified printer 200, the process of S112 ends withoutexecuting S423.

[Modification 2]

In the embodiment, in S26 (FIG. 4) the program 18B determines one of thedisplay styles (1)-(4) for each piece of BT identification informationbased on status information and model information which are example ofthe prescribed information. However, the program 18B may determine oneof display styles (1A) and (2A). Specifically, the program 18Bdetermines the display style (A) for each piece of BT identificationinformation which is included in a BT device that has completed thepairing process. The program 18B determines the display style (2A) foreach piece of BT identification information which is included in a BTdevice that has not completes the pairing process. The display styles(1A) and (2A) are a second example of the first style and a secondexample of the second style respectively. In this case, in S28 (FIG. 4)displays a piece of BT identification information corresponding to thefirst status information in the display style (1A) and a piece of BTidentification information corresponding to the second statusinformation in the display style (2A).

[Modification 3]

The program 18B may determine one of display styles (1B) and (2B).Specifically, the program 18B determines the display style (1B) for eachpiece of BT identification information including specific modelinformation. The program 18B determines the display style (2B) for eachpiece of the piece of BT identification information not includingspecific model information. The display styles (1B) and (2B) are thirdexamples of the first style and the second style respectively. In thiscase, in S28 (FIG. 4) displays BT identification information includingthe specific model information in the display style (1B) and BTidentification information not including specific model information inthe display style (2B).

[Modification 4]

S26 of FIG. 4 may not be executed. In this case, as shown in FIG. 7(B),in S27 the program 18B displays a BT device selection screen 32including the search object 321 and each piece of BT identificationinformation acquired in S25 without the objects 322-327. In this case,in S213 the program 18B determines the display style (5) for pieces ofBT identification information corresponding to keywords designatedthrough user operations by using the search object 321 from among thepieces of BT identification information acquired in S25. Subsequently,the program 18B executes S214 and S215. In this modification, theprocesses of S213 and S214 are second examples of the firstdetermination process and the first display process respectively. Thedisplay style (5) is a fourth example of the first display style.

[Modification 5]

S26 of FIG. 4 may not be executed. In this case, as shown in FIG. 7(C),in S27 the program 18B displays a BT device selection screen 32including only each piece of BT identification information acquired inS25 without the objects 322-327 and without the search object 321. Inthis case, in response to selection of one or more pieces of BTidentification information via the user interface 15 in S29 (FIG. 4), inS111 (FIG. 2) the program 18B executes the setup process according tothe normal BT setup method.

[Modification 6]

In the embodiment, through S21-S25 shown in FIG. 4, the OS 18A transmitsthe information set in response to the request (the first transmissionrequest) from the program 18B. However, the OS 18A may periodicallyexecute the process of S22-24 to generate information sets, and storethe information sets in the data area 12B. In this case, the program 18Bacquires the information sets from the data area 12B immediately afterthe process of FIG. 4 is started.

[Modification 7]

The printer 200 is described as a BT device and a USB device in theembodiment. However, the BT device and the USB device may be a scanner,a digital camera, a 3D printer, a machine tool, or a laser markingmachine.

Advantages of the embodiment and the modifications thereof will bedescribed. In executing a process of setup, a conventional informationprocessing device displays a list having pieces of BT identificationinformation for all devices that can establish BT wirelesscommunications including devices other than printers. Further, some typeof OSs or some versions of OS displays pieces of identificationinformation supporting wireless communication standards includingstandards other than BT. Thus, it is difficult for the user to quicklyselect a piece of BT identification information of the printer targetfor setup via a user interface.

On the other hand, the program 18B according to the embodiment and themodifications acquires the piece of BT identification information viathe wired communications with the target printer 200. That is, thetarget printer 200 is selected only from printers that establishes wiredcommunications with the wired communication interface 14. Accordingly,the user can quickly select the target printer 200 through the queuename selection screen 41.

When the program 18B cannot specify the wireless communication queue(S412 of FIG. 4: NO), the program 18B orders the OS 18A to execute thepairing process with the specified printer 200 through S413-S415.Accordingly, the setup process can be completed even if the pairingprocess has not been completed with the specified printer 200 at thetiming of S412.

Since in S418 (FIG. 7(A)) the program 18B confirms that the specifiedpiece of BT identification information includes specific modelinformation, the setup process can be executed correctly.

In S412 (FIG. 6) the program 18B selects, as a method for the setup ofthe program 18B, a first method in which the pairing process is notexecuted and a second process in which the pairing process is executedin S414 according to determination of whether the piece of BT deviceinformation acquired in S49 matches one of the pieces of paired BTdevice information acquired in S411. Accordingly, the setup process canbe executed regardless of whether the pairing process has been completedor not.

In the conventional technique, the user must perform troublesomeoperations for targeting the printer for setup that has completed thepairing process. On the other hand, according to the program 18B of theembodiment and the modifications, the user need not perform troublesomeoperations for targeting the printer for setup that has completed thepairing process.

The program 18B executes the setup process according to the normal BTsetup method which does not use the wired communication interface 14 oraccording to the USB-BT setup method using the wired communicationinterface 14. Thus, the usability can be improved.

The usability can be improved because the program 18B supports theplurality of profiles.

In S24 (FIG. 4) the OS 18A correlates the status information with eachof the pieces of paired BT device information and pieces of unpaired BTdevice information. Accordingly, process load of the program 18B can bereduced in the BT setup process.

What is claimed is:
 1. A non-transitory computer readable storage mediumstoring a set of program instructions installed on and executed by aninformation-processing device having a wireless communication interface,a wired communication interface, a user interface, a display, acontroller, and a memory, the memory storing an OS configured toexecute: a pairing process to establish a relationship between the OSand an external device for wireless communications via the wirelesscommunication interface; obtaining a piece of wireless identificationinformation from the external device via wireless communication usingthe wireless communication interface; generating a wireless queue usedfor wireless communication; and a registration process to registercorrelation information that correlates the generated queue with theobtained piece of wireless identification information, the piece ofwireless identification information identifying the external device andbeing used for wireless communication with the external device, the setof program instructions comprising: executing a storage process to storea command program in the memory; executing an acquisition process fortransmitting a request for the piece of wireless identificationinformation to the external device, which is connected to the wiredcommunication interface, via wired communications using the wiredcommunication interface, and for acquiring the piece of wirelessidentification information from the external device via wiredcommunications using the wired communication interface as a response tothe request; specifying the wireless queue by using the acquired pieceof wireless identification information and the correlation informationwhich is registered in the registration process by the OS; and executinga setup process, the setup process to enable the command program tooutput via the wireless communication interface commands to the externaldevice identified by the acquired piece of wireless identificationinformation by using the wireless queue.
 2. The non-transitory computerreadable storage medium according to claim 1, wherein the set of programinstructions further comprises, in a case where the specifying does notspecify the wireless queue, instructing the OS to execute the pairingprocess with the external device identified by the piece of wirelessidentification information, wherein according to the instructing, the OSexecutes the pairing process with the external device, obtains the pieceof wireless identification information from the external device,generates the wireless queue, and subsequently executes the registrationprocess on the generated wireless queue, wherein the setup process isexecuted after the OS completes the registration process based on theinstructing.
 3. The non-transitory computer readable storage mediumaccording to claim 1, wherein the piece of wireless identificationinformation has structure capable of including model informationindicating a model of the device, wherein the command program is capableof transmitting commands to external devices of a specific model,wherein the specifying specifies the wireless queue correlated with theacquired piece of wireless identification information including specificmodel information identifying the specific model.
 4. The non-transitorycomputer readable storage medium according to claim 1, wherein the OSgenerates a wired queue in response to the wired communication interfaceestablishing wired connection to the external device, the wired queuebeing used for outputting commands to the external device via the wiredcommunication, wherein the acquisition process is executed fortransmitting the request to the external device, to which the wiredconnection is established, through wired communication using the wiredqueue and the wired communication interface, the request requesting forthe piece of wireless identification information.
 5. The non-transitorycomputer readable storage medium according to claim 1, wherein the setof program instructions further comprises: executing a first displayprocess to display on the display a first option indicating a setupmethod without using the wired communication interface and a secondoption indicating a setup method using the wired communicationinterface; and in a first case where the first option is selected viathe user interface: executing a second acquisition process for acquiringthe piece of wireless identification information from the externaldevice by using the wireless communication interface; and executing asetup process to enable the command program to output via the wirelesscommunication interface commands to the external device identified bythe piece of wireless identification information acquired in the secondacquisition process, wherein in a second case where the second option isselected via the user interface, the acquisition process is executed. 6.The non-transitory computer readable storage medium according to claim5, wherein in the second case, the OS generates a wired queue inresponse to the wired communication interface establishing wiredconnection to the external device, the wired queue being used foroutputting commands to the external device via the wired communication,wherein the set of program instructions further comprises: executing asecond display process to display a third option on the display, thethird option being for selecting the wired queue generated by the OS; ina case where the third option is selected via the user interface, theacquisition process is executed for transmitting the request to theexternal device, which is connected to the wired communicationinterface, through wired communication using the wired queue and thewired communication interface.
 7. The non-transitory computer readablestorage medium according to claim 1, wherein the wired communicationinterface has connectors configured to be connected to respective onesof external devices, wherein the acquisition process, the specifying,and the setup process are executed for each of the external devicesconnected to the connectors.
 8. The non-transitory computer readablestorage medium according to claim 1, wherein the external device is aprinter and the wireless queue is a wireless print queue used for thewireless communication.
 9. A non-transitory computer readable storagemedium storing a set of program instructions installed on and executedby an information-processing device having a wireless communicationinterface, a wired communication interface, a user interface, acontroller, and a memory, the set of program instructions comprising:executing a storage process to store a command program in the memory,executing an acquisition process for transmitting a request for a pieceof wireless identification information to an external device, which isconnected to the wired communication interface, via wired communicationsusing the wired communication interface, and for acquiring the piece ofwireless identification information from the external device via wiredcommunications using the wired communication interface as a response tothe request, the piece of wireless identification informationidentifying the external device and being used for wirelesscommunication with the external device; in a first case where theexternal device identified by the piece of wireless identificationinformation is in a first state, executing a setup process to enable thecommand program to output via the wireless communication interfacecommands to the external device identified by the piece of wirelessidentification information according to a first method; and in a secondcase where the external device identified by the piece of wirelessidentification information is in a second state different from the firststate, executing the setup process to enable the command program tooutput via the wireless communication interface commands to the externaldevice identified by the piece of wireless identification informationaccording to a second method different from the first method.
 10. Thenon-transitory computer readable storage medium according to claim 9,wherein the first state is a state of connection between the externaldevice and the information-processing device, the second state is astate of connection between the external device and theinformation-processing device different from the first state.
 11. Thenon-transitory computer readable storage medium according to claim 10,wherein the memory stores an OS configured to execute: a pairing processto establish a relationship between the OS and an external device viathe wireless communication interface; obtaining a piece of wirelessidentification information from the external device via wirelesscommunication using the wireless communication interface; and generatinga wireless queue used for wireless communication; and a registrationprocess to register correlation information that correlates thegenerated wireless queue with the obtained piece of wirelessidentification information, the piece of wireless identificationinformation identifying the external device and being used for wirelesscommunication with the external device, wherein the first state is astate where the external device has completed the pairing process withthe OS, and the second state is a state where the external device hasnot completed the pairing process with the OS, wherein in the secondcase, the setup process according to the second method includesinstructing the OS to execute the pairing process with the externaldevice before enabling the command program to output via the wirelesscommunication interface commands, wherein in the first case, the setupprocess according to the first method enables, without executing theinstructing, the command program to output via the wirelesscommunication interface.
 12. The non-transitory computer readablestorage medium according to claim 11, wherein the OS generates a wiredqueue in response to the wired communication interface establishingwired connection to the external device, the wired queue being used foroutputting commands to the external device via the wired communication,wherein the acquisition process is executed for transmitting the requestto the external device, to which the wired connection is established,through wired communication using the wired queue and the wiredcommunication interface.
 13. The non-transitory computer readablestorage medium according to claim 11, wherein the information-processingdevice further includes a display, wherein the set of programinstructions further comprises: executing a display process to displayon the display a first option indicating a setup method without usingthe wired communication interface and a second option indicating a setupmethod using the wired communication interface; and in a case where thefirst option is selected via the user interface: executing a secondacquisition process for acquiring the piece of wireless identificationinformation from the external device by using the wireless communicationinterface; and executing a setup process to enable the command programto output via the wireless communication interface commands to theexternal device identified by the piece of wireless identificationinformation acquired in the second acquisition process, wherein in acase where the second option is selected via the user interface, theacquisition process is executed.
 14. The non-transitory computerreadable storage medium according to claim 13, wherein in the secondcase, the OS generates a wired queue in response to the wiredcommunication interface establishing wired connection to the externaldevice, the wired queue being used for outputting commands to theexternal device via the wired communication using the wiredcommunication interface, wherein the set of program instructions furthercomprises: executing a second display process to display a third optionon the display, the third option being for selecting the wired queuegenerated by the OS; in a case where the third option is selected viathe user interface, the acquisition process is executed for transmittingthe request to the external device, which is connected to the wiredcommunication interface, through wired communication using the wiredqueue and the wired communication interface.
 15. The non-transitorycomputer readable storage medium according to claim 9, wherein theinformation-processing device further includes a display, wherein theinformation-processing device is capable of performing wirelesscommunication with the external device according to each of a pluralityof profiles, each profile defining a method of wireless communication,wherein the set of program instructions further comprises a displayprocess to display on the display a screen including at least one objectfor selecting a profile among the plurality of profiles, wherein thesetup process is executed so that the command program can output thecommands via wireless communications in conformance with the selectedprofile.
 16. The non-transitory computer readable storage mediumaccording to claim 15, wherein the wireless communication is defined byIEEE 802.15.1, and the plurality of profiles includes Hardcopy CableReplacement Profile and Serial Port Profile.
 17. The non-transitorycomputer readable storage medium according to claim 11, wherein throughthe pairing process, the OS registers in the memory a piece ofpaired-device wireless identification information identifying theexternal device with which the OS has completed the pairing process,wherein the set of program instruction further comprises: determiningthat the external device is in the first state, in a case where thepiece of wireless identification information identifying the externaldevice matches the piece of paired-device wireless identificationinformation registered in the memory; and determining that the externaldevice is in the second state, in a case where the piece of wirelessidentification information identifying the external device does notmatch any piece of paired-device wireless identification informationregistered in the memory.
 18. The non-transitory computer readablestorage medium according to claim 17, wherein the acquisition processinstructs the OS to transmit the request to the external device that isdetected by the wired communication interface, wherein the OS acquiresthe piece of wireless identification information identifying theexternal device that is detected by the wireless communication interfacein response to the request.
 19. An information-processing devicecomprising: a wireless communication interface; a wired communicationinterface; a user interface; a display, a memory storing an OSconfigured to execute: a pairing process to establish a relationshipbetween the OS and an external device for wireless communications viathe wireless communication interface; obtaining a piece of wirelessidentification information from the external device via wirelesscommunication using the wireless communication interface; generating awireless queue used for wireless communication; and a registrationprocess to register correlation information that correlates thegenerated queue with the obtained piece of wireless identificationinformation, the piece of wireless identification informationidentifying the external device and being used for wirelesscommunication with the external device; and a controller configured toexecute: a storage process to store a command program in the memory; anacquisition process for transmitting a request for the piece of wirelessidentification information to the external device, which is connected tothe wired communication interface, via wired communications using thewired communication interface, and for acquiring the piece of wirelessidentification information from the external device via wiredcommunications using the wired communication interface as a response tothe request; specifying the wireless queue by using the acquired pieceof wireless identification information and the correlation informationwhich is registered in the registration process by the OS; and a setupprocess, the setup process to enable the command program to output viathe wireless communication interface commands to the external deviceidentified by the acquired piece of wireless identification informationby using the wireless queue.
 20. An information-processing devicecomprising: a wireless communication interface; a wired communicationinterface; a user interface; a memory; and a controller configured toexecute: a storage process to store a command program in the memory; anacquisition process for transmitting a request for a piece of wirelessidentification information to an external device, which is connected tothe wired communication interface, via wired communications using thewired communication interface, and for acquiring the piece of wirelessidentification information from the external device via wiredcommunications using the wired communication interface as a response tothe request, the piece of wireless identification informationidentifying the external device and being used for wirelesscommunication with the external device; in a first case where theexternal device identified by the piece of wireless identificationinformation is in a first state, a setup process to enable the commandprogram to output via the wireless communication interface commands tothe external device identified by the piece of wireless identificationinformation according to a first method; and in a second case where theexternal device identified by the piece of wireless identificationinformation is in a second state different from the first state, thesetup process to enable the command program to output via the wirelesscommunication interface commands to the external device identified bythe piece of wireless identification information according to a secondmethod different from the first method.